import request from '@/utils/request'

// 查询战马预设列表
export function listWarHorsePresets(query) {
  return request({
    url: '/system/WarHorsePresets/list',
    method: 'get',
    params: query
  })
}

// 查询战马预设详细
export function getWarHorsePresets(id) {
  return request({
    url: '/system/WarHorsePresets/' + id,
    method: 'get'
  })
}

// 新增战马预设
export function addWarHorsePresets(data) {
  return request({
    url: '/system/WarHorsePresets',
    method: 'post',
    data: data
  })
}

// 修改战马预设
export function updateWarHorsePresets(data) {
  return request({
    url: '/system/WarHorsePresets',
    method: 'put',
    data: data
  })
}

// 删除战马预设
export function delWarHorsePresets(id) {
  return request({
    url: '/system/WarHorsePresets/' + id,
    method: 'delete'
  })
}
